package design_pattern.adapter.demo02;

/**
 * @version 1.0.0
 * Created by cyd on 2022-06-06 10:34:34
 * @ClassName : design_pattern.adapter.demo02.Forward
 * @Description : 类描述
 */
public class Guards extends Player {

    public Guards(String name) {
        super(name);
    }

    @Override
    public void attack() {
        System.out.println("后卫" + name + "进攻");
    }

    @Override
    public void defence() {
        System.out.println("后卫" + name + "防御");
    }
}
